#ifndef FFMPEG_H
#define FFMPEG_H

#include "Converter.h"

class FFmpeg: public Converter
{
	Q_OBJECT
	
signals:
	void progressChanged(int);
	
public:
	FFmpeg(const QString &, QObject *parent = NULL);
	
	virtual void convert(const QString &);
	
	int threads() const	{ return _threads; }
	
public slots:
	void setThreads(int n)	{ _threads = n; }
	
protected:

private slots:
	void parseOutput(const QString &);
	
private:
	int _threads;
	int _totalSecond, _currentSecond;
};

#endif	// FFMPEG_H
